Move require and extend to sql object definition
Rename source files