Adding Apache license.
Adding logout and function to delete SQLite