Added database code for keywords.