added database query
pushed some buttons and xml changes