fixed small bugs in promotedposts.php and dbinstall.php

Signed-off-by: portamx <support@portamx.com>