implement near search
add init script for database