Created a simple api using SQL only functions.