Added built buildings log in database, and query handler in server