fixed my own errors and changed USER variable to DBUSER variable to make it work