Method, getting data from SQLite database