Made the DB settings explicit so they don't conflict with anyone
Fix bug where the incorrect number of items were returned. Also included test.