movies database generated sql