Rewrite to allow for database drivers, applied license info to headers