Retriving values from the SQLite database