added import to database functionality