Database

Fixes included
Added htaccess-file and reading working directory