adding code with database integration with sqllite