Fixed a database grabbing