Fixed issues in Customer DAO and Resource class restructing