Fixed bug where you couldn't read from database