Added use of sqlite database