New database queries

Connects the database queries to the actual database using the building id.