interact with database inside ruby
optimize render method
modify server yml file is wrong