Code now gets all data (except texture images) from the database