added poi retrieving base functionality and database support