added api for db