Update database.py

error in database query, doesn't show the latest - shows the first entries...