Added database series query to db/api.py