changed query field to select menu
re-designed database structure