engine: Query to get bricks given a server id

Query to get a list of bricks associated with a
server given a server id.
This is needed to show the list of bricks associated
with server in a bricks tab

Also refactored the dao to use a view instead
of getting server name from a jdbc query.

Change-Id: I045c027617f1a50270f2462def56dc74f52435cf
Signed-off-by: Sahina Bose <sabose@redhat.com>