API for Sql Databases