Added import database functionality