Can now add res to database
...