MovieLens is the public dataset. you can use this for training purpose. Use the below link to learn, how to import 20 M movielens dataset into SQLite 3
http://ampersandacademy.com/tutorials/import-movielens-data-sqlite-3/
http://ampersandacademy.com/tutorials/import-movielens-data-sqlite-3/