adjusting formatting on api key sql statements