SQLite database code added