Implement semantic database by Bekerley DB and Lucene