API: Made first set of SQL modifications