old_contents: export default function createSelect(pool) {
  	return (table, id) => new Promise((resolve, reject) => {
  		pool.getConnection((err, conn) => {
  			if (err) {
  				return reject(err);
  			}
  
  			const query = `SELECT * FROM ${table} WHERE id = ?`;
  			conn.query(query, [id], (err, result) => {
  				conn.release();
  				if (err) {
  					return reject(err);
  				}
  
  				resolve(result);
  			});
  		});
  	});
  }
  
new_contents: export default function createSelect(pool) {
  	return (table, id) => new Promise((resolve, reject) => {
  		pool.getConnection((err, conn) => {
  			if (err) {
  				return reject(err);
  			}
  
  			const query = `SELECT * FROM ${table} WHERE id = ?`;
  			conn.query(query, [id], (err, [row]) => {
  				conn.release();
  				if (err) {
  					return reject(err);
  				}
  
  				resolve({ ...row });
  			});
  		});
  	});
  }
  
subject: return only the selected row from select