Completed sql example application